home *** CD-ROM | disk | FTP | other *** search
- defineps drawSphereBW(float color; int radius;
- float dcolor; float dx; float dy; int maxsize)
- color setgray
- 1.0 setalpha
- maxsize maxsize radius 0 360 arc
- clip fill stroke
-
- /currX maxsize def
- /currY maxsize def
- /curColor color def
- radius -1 0
- {
- /i exch def
- curColor setgray
- currX currY i 0 360 arc
- fill
- /currX currX dx add def
- /currY currY dy add def
- /curColor curColor dcolor add def
- } for
- initclip
- endps
-
-
- defineps drawSphereCL(float red; float green; float blue; int radius;
- float dred; float dgreen; float dblue; float dx; float dy;
- int maxsize)
- red green blue setrgbcolor
- 1.0 setalpha
- maxsize maxsize radius 0 360 arc
- clip fill stroke
-
- /currX maxsize def
- /currY maxsize def
- /curR red def
- /curG green def
- /curB blue def
- radius -1 0
- {
- /i exch def
- curR curG curB setrgbcolor
- currX currY i 0 360 arc
- fill
- /currX currX dx add def
- /currY currY dy add def
- /curR curR dred add def
- /curG curG dgreen add def
- /curB curB dblue add def
- } for
- initclip
- endps
-